﻿using System.Web.UI.WebControls;

namespace ContentMaintenanceDashboard.Classes
{
    /// <summary>
    /// Override the default checkbox so we can specify a value instead of just text. 
    /// </summary>
    public class ValueCheckBox : CheckBox
    {
        /// <summary>
        /// Holds the value instead of text.
        /// </summary>
        public string Value
        {
            get { return ViewState["Value"] != null ? ViewState["Value"].ToString() : null; }
            set { ViewState["Value"] = value; }
        }
    }
}
